package com.wm.dao;

import java.util.List;

import org.hibernate.Query;

import com.wm.bean.Restaurant;

import cn.itcast.bean.Person;

public interface RestaurantDao {
	
	
	public void save(Restaurant restaurant);

	public void update(Restaurant restaurant);

	public Person getPerson(Integer restaurantid);

	public void delete(Integer restaurantid);

	public int getRestPages(int maxResults,String uid);
	public int getRestPagesWithHql(int maxResults, String hql);

	public List<Restaurant> getRestaurants(int beginNum, int maxResults,String uid);
	public List<Restaurant> getRestaurantsByNameHql(int beginNum, int maxResults, String hql);
}